<?php

class MemberInfoAction extends MemberBaseAction
{

    public function index()
    {
        $member = D("Member")->getByid($_SESSION[C('USER_AUTH_KEY')]);
        $this->assign($member);
        $this->display();
    }

    public function doedit()
    {
        $data = $_POST;
        $test = $data['test'];
//htmlspecialchars($string)
        $test = explode(Chr(13), $test);
        print_r($test);
        exit;
        $data['id'] = $_SESSION[C('USER_AUTH_KEY')];
        if (trim($data['newpwd']) != '')
            $data['password'] = md5(trim($data['newpwd']));
        if (D("Member")->save($data)) {
            $this->success("修改成功！");
        } else {
            $this->error("修改失败！");
        }
    }

}

?>